package com.baikeyang.common.bean;

/**
 * 分页
 * Created by lenovo on 2018/7/13.
 */
public class PageResponseResult extends ResponseResult {

    /**
     * 返回单字符串信息
     */
    private String result = "";

    /**
     * 返回信息说明
     */
    private String message = "";

    /**
     * 数据分页对象
     */
    private Pager pager;

    public PageResponseResult() {
        this.pager = new Pager();
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Pager getPager() {
        return pager;
    }

    public void setPager(Pager pager) {
        this.pager = pager;
    }

    public void setPager(int page) {
        this.getPager().setPage(page);
    }

    public void setPager(int page, long recTotal) {
        this.setPager(page);
        this.getPager().setRecTotal(recTotal);
    }

    public void setPager(int page, int recTotal, int recPerPage) {
        this.setPager(page, recTotal);
        this.getPager().setRecPerPage(recPerPage);
    }

}
